package org.zp.service;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import org.zp.mapper.AddressMapper;
import org.zp.pojo.AddressInfo;
import org.zp.vo.AdminMoneySunVo;
import org.zp.vo.NetWorkMoneySunVo;

@Service
@Transactional(rollbackFor = Exception.class)//出现异常就回滚事务
public class AddressServiceimpl implements AddressService{
	@Resource
	private AddressMapper a;

	@Override
	public List<AddressInfo> getaddressone() {
		// TODO Auto-generated method stub
		return a.selectAddressOne();
	}

	@Override
	public List<AddressInfo> getaddressTow(Integer fid) {
		// TODO Auto-generated method stub
		return a.getaddressTow(fid);
	}

	@Override
	public List<NetWorkMoneySunVo> selectNetWorkName(Long kid) {
		// TODO Auto-generated method stub
		return a.selectNetWorkName(kid);
	}

	@Override
	public List<AdminMoneySunVo> getexpressSun(Long three, Long kind) {
		// TODO Auto-generated method stub
		return a.getexpressSun(three,kind);
	}
}
